package com.schoolhelper.model;

import android.content.Context;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

import lombok.NoArgsConstructor;

@NoArgsConstructor
public class YyzExecutors {

    public static <T> Future<T> submit(Callable<T> task) {
        return Model.getInstance().getGlobalThreadPool().submit(task);
    }
}
